package behavioral.state;

import lombok.Data;

/**
 * @Description: 环境类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
@Data
public class Context {
    private IState state;

    public Context(IState state) {
        this.setState(state);
    }

    public void changeState() {
        this.state.changeState(this);
    }
}
